﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeBehind="book.aspx.cs" Inherits="Icst.Leaflike.Web.book_default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
    <div style="margin-top:10px">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top">
                    <table style="width:100%"  cellpadding="0" cellspacing="0">
                             <% for (int j = 0, page = _books.Length / 1; j <= page; ++j)
                              {%>
                                  <tr>
                                  
                                  <%
                                      for (int i = 1 * j; i < (j + 1) * 1 && i < _books.Length; ++i)
                                  {
                                      var book = _books[i];
                        %>
                        <td>
                            <table style="margin-bottom:10px">
                                <tr>
                                    <td valign="top">
                                        <h1>
                                            <a href='<%=book.book_link1 %>' target="_blank">
                                                <%= book.name %></a></h1>
                                        <p>
                                            <%= book.description%></p>
                                    </td>
                                    <td valign="top">
                                        <a href='<%=book.book_link1 %>' target="_blank">
                                            <img alt='<%=book.name %>' src='<%=book.cover_image %>'/></a>
                                    </td>
                                </tr>
                            </table>
                        </td>        
                        <%}%>
                        </tr>
                        <%} %>
                    </table>
                    <asp:Paginator runat="server"  ID="paginator" ShowGotoBox="false"  ShowFirstPage="false" ShowLastPage="false" ShowPageIndexList="false"
                     PageSize="10" PagerTagName="span" PagerCssClass="num_btn" NumericButtonCount="10" CustomizeTextAlign="Left" CssClass="pager" PageListCssClass="page_list" />
               </td>
            </tr>
        </table>
   </div>
</asp:Content>
